package jse;

import java.util.Arrays;

public class TestHangLie {
	public static void main(String[] args) {
		int[][] arrs={{1,2,3},{4,5,6},{7,8,9}};
		int[][] arrs2=arrs.clone();
		//System.out.println(Arrays.toString(arrs2));
		int[][] arrs3=new int[arrs.length][arrs[0].length];
		int i,j;
		for( i=0;i<arrs.length;i++){
			for( j=0;j<arrs[i].length;j++){
				arrs3[i][j]=arrs[i][j];
			}
			arrs3[i][i]=arrs[i][j];
		}
		System.out.println(Arrays.toString(arrs3[0]));
	}
}
